package com.ouc.yyi.user.springcloud.user.userInfo.sevice.impl;

import com.ouc.yyi.user.springcloud.user.userInfo.bo.UserBo;
import com.ouc.yyi.user.springcloud.user.userInfo.mapper.UserInfoMapper;
import com.ouc.yyi.user.springcloud.user.userInfo.sevice.UserInfoService;
import org.apache.commons.logging.Log;
import org.apache.commons.logging.LogFactory;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
public class UserInfoServiceImpl implements UserInfoService {
    private static final Log logger = LogFactory.getLog(UserInfoServiceImpl.class);

    @Autowired
    private UserInfoMapper userInfoMapper;

    @Override
    public UserBo getUserInfoByOperKey(String userId) {
        logger.info("当前用户的id:" + userId);
        return userInfoMapper.getUserInfoByOperKey(userId);
    }
}
